package com.ozo.boot.manage.pojo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 用户 视图对象
 * </p>
 *
 * @author qiangesoft
 * @since 2024-07-11
 */
@Schema(description = "用户视图对象")
@Data
@NoArgsConstructor
public class SysUserVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    private Long id;

    @Schema(description = "部门id")
    private Long deptId;

    @Schema(description = "用户名")
    private String username;

    @Schema(description = "密码")
    private String password;

    @Schema(description = "昵称")
    private String nickname;

    @Schema(description = "手机号")
    private String mobile;

    @Schema(description = "姓名")
    private String realName;

    @Schema(description = "性别：1-男 0-女")
    private String gender;

    @Schema(description = "头像")
    private String avatar;

    @Schema(description = "出生日期")
    private LocalDate birthDate;

    @Schema(description = "身份证号")
    private String idCard;

    @Schema(description = "地址")
    private String address;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "状态")
    private String status;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "所属角色")
    private List<SysRoleVO> roleList;

    @Schema(description = "所属岗位")
    private List<SysPostVO> postList;

    @Schema(description = "所属部门")
    private SysDeptVO dept;

}
